import { getData, postData } from '../../untils/request';

// 返回所有分类 
export async function getAllCategory() {
    const data = await getData('/category/getAllCategory');
    return data;
}

// 新增文件
export async function addArticle(article) {
    const data = await postData('/article/add', article);
    return data;
}

// 新增图片
export async function addImage(image) {
    const data = await postData('/image/add', image);
    return data;
}